<?php
class MyLinkPager extends CLinkPager
{
    public function createPageButton($label,$page,$class,$hidden,$selected)
    {
        if($hidden || $selected)
            $class.=' '.($hidden ? $this->hiddenPageCssClass : $this->selectedPageCssClass);
        return '<li>'.CHtml::link($label,$this->createPageUrl($page), array('class' => $class)).'</li>';
    }  
}